package com.sweetguy.dto;

import com.sweetguy.constant.RE;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import javax.validation.constraints.Pattern;

@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@Schema(name = "季次分页DTO")
@Data
public class SeasonPageDTO extends PageDTO implements RE {

    @Schema(description = "标题")
    @Pattern(regexp = TITLE_RE, message = TITLE_RE_MSG)
    private String title;

    @Schema(description = "课程ID， 课程表外键")
    private Long fkCourseId;
}
